package com.wsj.web.constant.map;

import java.util.HashMap;
import java.util.Map;

public class MapHomeSiteContent {
	
	private static MapHomeSiteContent mapHomeSiteContent=null;

	public static MapHomeSiteContent getMapHomeSiteContent()
	{
		
		 if(mapHomeSiteContent==null)
	        {
			 mapHomeSiteContent=new MapHomeSiteContent();
	        }

	        return mapHomeSiteContent;
	}

	
	public static void setMapHomeSiteContent(MapHomeSiteContent mapHomeSiteContent) 
	{
		MapHomeSiteContent.mapHomeSiteContent = mapHomeSiteContent;
	}
	
	//分栏目
	private static Map<String, String> columnMap;
	
	//分站
	private static Map<String, String> areaMap;

	public static Map<String, String> getAreaMap()
	{
		
		  if(areaMap==null)
			{
			areaMap=new HashMap<String, String>(5);
				//无锡
			areaMap.put("wx.", "city_23");
				//安徽
			areaMap.put("ah.", "prov_1");
				//台州
			areaMap.put("tz.", "city_279");
				
			}
		return areaMap;
	}


	public static void setAreaMap(Map<String, String> areaMap) {
		
		MapHomeSiteContent.areaMap = areaMap;
	}


	public static Map<String, String> getColumnMap() {
		
		if(columnMap==null)
			{
				 columnMap=new HashMap<String, String>(10);
				//资讯中心
				columnMap.put("news.", "/newsIndex.do?nav=1");
				//招商中心
				columnMap.put("zs.", "/zstSearchAction.do?nav=3");
				//品牌广场
				columnMap.put("brand.", "/ppgc.do?nav=4");
				//产品信息
				columnMap.put("product.", "/cpxxAction.do?method=search&nav=5");
				//商机信息
				columnMap.put("trade.", "/sjxx.do?nav=6");
				//经销商
				columnMap.put("dealer.", "/jxs_html.do?nav=7");
				//主题杂志
				columnMap.put("zine.", "/homeSite/magazine/magazineIndex.do?action=loadMagazine&nav=8");
				//专题直播
				columnMap.put("fea.", "/ztSearchAction.do?method=execute&nav=9");
				//购车商城
				//columnMap.put("mall.", "/Index.do");
				columnMap.put("mall.", "/mall_html.do");				
				//行业论坛
				columnMap.put("bbs.", "http://www.qqddc.com/bbs");
				
			}
		return columnMap;
	}


	public static void setColumnMap(Map<String, String> columnMap) {
		MapHomeSiteContent.columnMap = columnMap;
	}
	
	
	
	

	
	
}
